package com.imut.hcdp.mapper;

import java.util.List;

import com.imut.hcdp.domain.HcdpTrainRoute;
import com.imut.hcdp.domain.HcdpTrainRouteDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface HcdpTrainRouteDetailMapper
{

    public HcdpTrainRouteDetail selectHcdpTrainRouteDetailById(Long id);


    public List<HcdpTrainRouteDetail> selectHcdpTrainRouteDetailList(HcdpTrainRouteDetail hcdpTrainRouteDetail);


    public int insertHcdpTrainRouteDetail(HcdpTrainRouteDetail hcdpTrainRouteDetail);


    public int updateHcdpTrainRouteDetail(HcdpTrainRouteDetail hcdpTrainRouteDetail);


    public int deleteHcdpTrainRouteDetailById(Long id);

    public int deleteHcdpTrainRouteDetailByRouteId(Long id);


    public int deleteHcdpTrainRouteDetailByIds(Long[] ids);

    /**
     * 查询火车票
     * @param hcdpTrainRoute
     * @return
     */
    List<HcdpTrainRouteDetail> selectList(HcdpTrainRoute hcdpTrainRoute);

    /**
     * 获取order
     * @param id
     * @return
     */
    String selectOrderAsc(@Param("id") Long id);

    String selectDetailIds(Long id);
}
